.container {
  background-color: red;
}
.container ul {
  clear: both;
  padding: 0;
  margin-right: 0;
  *zoom: 1;
}
.container ul:before, .container ul:after {
  content: "";
  display: table;
}
.container ul:after {
  clear: both;
}
.container ul li {
  display: block;
  float: left;
  margin: 0 0 0 1%;
  width: 15.83333%;
  background-color: green;
  text-align: center;
}
.container ul li:first-child {
  margin-left: 0;
}
@media only screen and (max-width: 480px) {
  .container ul li {
    margin: 0 0 0 0;
  }
}
@media only screen and (max-width: 480px) {
  .container ul li {
    width: 100%;
  }
}

@media only screen and (max-width: 700px) {
  .container {
    background-color: red;
  }
  .container ul {
    clear: both;
    padding: 0;
    margin-right: 0;
    *zoom: 1;
  }
  .container ul:before, .container ul:after {
    content: "";
    display: table;
  }
  .container ul:after {
    clear: both;
  }
  .container ul li {
    display: block;
    float: left;
    margin: 0 0 0 0%;
    width: 50%;
    background-color: green;
    text-align: center;
  }
  .container ul li:first-child {
    margin-left: 0;
  }
}
@media only screen and (max-width: 700px) and (max-width: 480px) {
  .container ul li {
    margin: 0 0 0 0;
  }
}
@media only screen and (max-width: 700px) and (max-width: 480px) {
  .container ul li {
    width: 100%;
  }
}
